#include<iostream>
using namespace std;
const int N = 100;
int ans[N];
int s1, s2, s3;
int main()
{
	cin >> s1 >> s2 >> s3;
	int sum = 0;
	for (int i = 1; i <= s1; i++) {
		sum = 0;
		for (int j = 1; j <= s2; j++) {
			for (int k = 1; k <= s3; k++) {
				sum = i + j + k;
				ans[sum]++;
			}
		}
	}
	int ma = -1000;
	for (int i = 3; i <= N; i++) {
		if (ans[sum] != 0 && ans[i] > ma) {
			ma = ans[i];
		}
	}
	for (int i = 3; i <= N; i++) {
		if (ma == ans[i]) {
			cout << i << endl;
			break;
		}
	}
	return 0;
}